We can add featured image to rss feed. Even we can add it to custom post type rss feed also. Like
http://mywebsite.com/feed/
http://mywebsite.com/feed/?post_type=product
Just need to add this code to functions.php file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// THIS INCLUDES THE THUMBNAIL IN OUR RSS FEED | |
add_filter( 'the_excerpt_rss', 'rmplugs_insertThumbnailRSS' ); | |
add_filter( 'the_content_feed', 'rmplugs_insertThumbnailRSS' ); | |
function rmplugs_insertThumbnailRSS( $content ) { | |
global $post; | |
$slides = rmthemes_post_meta($post->post_id, 'slideshow'); | |
if ($slides){ | |
$postimage = rmthemes_image_by_id($slides[0]['slideshow_image'],'thumbnail'); | |
$content = '<div>' . $postimage . '</div>' . $content; | |
return $content; | |
} | |
} |
This is customize code, because I want to show this type of post image and this